package com.hik.springboot_mybatis.bean;

import java.util.List;



/**
 * create table car (
 * 	carId varchar(10) primary key,
 * 	carName varchar(10)
 * )
 *
 * create table temps (
 * 	tId varchar(10) primary key,
 * 	pId varchar(10),
 * 	carId varchar(10)
 * --	constraint p_fk foreign key(pId) references people(pid),
 * --	constraint c_fk foreign key(carId) references people(carId)
 * )
 * @author wukangrong
 */

public class People {

    private String pids;
    private String pNames;

    private List<Car> cars;

    public List<Car> getCars() {
        return cars;
    }

    public void setCars(List<Car> cars) {
        this.cars = cars;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getpNames() {
        return pNames;
    }

    public void setpNames(String pNames) {
        this.pNames = pNames;
    }

    @Override
    public String toString() {
        return "People{" +
                "pids='" + pids + '\'' +
                ", pNames='" + pNames + '\'' +
                ", cars=" + cars +
                '}';
    }
}
